package com.ds.dsm.aggregation.module.service;

import com.ds.esd.custom.bean.MethodConfig;
import com.ds.esd.custom.bean.enums.ModuleViewType;
import com.ds.esd.custom.tree.annotation.TreeAnnotation;
import com.ds.esd.tool.ui.component.list.TreeListItem;


@TreeAnnotation()
public class DataConfigTree extends TreeListItem {

    String navClassName = "dsm.agg.view.config.win.WinConfig";

    public DataConfigTree(MethodConfig methodAPIBean, String sourceClassName, String domainId) {
        ModuleViewType dsmType = methodAPIBean.getModuleViewType();
        String methodName = methodAPIBean.getMethodName();
        this.caption = "窗体配置";
        this.imageClass = dsmType.getImageClass();
        this.setEuClassName(dsmType.getClassName());
        this.setId(dsmType.getType() + methodName);
        this.setGroup(true);
        this.addTagVar("sourceClassName", sourceClassName);
        this.addTagVar("methodName", methodName);
        this.addTagVar("domainId", domainId);


    }


}


